<?php
$title = "Verification";
include 'include/overall/header.php';

if(!empty($_GET['code']) && isset($_GET['code'])){
	$msg = $user -> activateUser($_GET['code']);
	if($msg == 1){
		header("Location: index.php?msg=1");
		
	}elseif($msg == 2){
		header("Location: index.php?msg=2");
	}elseif($msg == 3){
		header("Location: index.php?msg=3");
	}
	exit();
}else{
	$msg ='<div id="alert" class="alert alert-danger fade">
			Ingen aktiverinsg kode ble funnet! <a href="index.php" class="alert-link">Klikk her for å gå tilbake til startsiden</a>
		</div>';
}
?>

<br />
<div class="thumbail center well well-small text-center">
		<?php echo $msg;?>
	</div>

<?php include 'include/overall/footer.php';?>